package edu.kjxy.day03.syn_Out_asyn;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 19:14
 */
public class MyThreadB extends Thread {
    private MyList list;

    public MyThreadB(MyList list) {
        super();
        this.list = list;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100000; i++) {
            list.add("threadB" + (i + 1));
        }
    }
}
